**********************************************************************
clear all
set more off
version 16.1
set scheme lean1

**********************************************************************

* Programmer: Marvin Schütt

* Date of last update: 20.01.2021
           

**********************************************************************

* 1. Project 

* This set of do-files includes the code for the paper "SYSTEMATIC VARIATON IN WASTE SITE EFFECTS ON RESIDENTIAL PROPERTY VALUES: A META-REGRESSION ANALYSIS AND BENEFIT TRANSFER". 

*Abstract: "This article presents a meta-analysis based on 727 estimates from 83 hedonic pricing studies to provide new insights on the effects of waste sites on residential property values. Relative to previous meta-analyses on this subject, estimates are corrected for publication bias and the ability of the meta-regression model to produce reliable benefit-transfer estimates is assessed. Proximity to severely contaminated waste sites has a supremely negative impact on residential property values, whereas on average the distance from non-hazardous waste sites has no effect. Correcting for publication bias has a sizeable impact, reducing the average effect size by up to 38%. Benefit-transfer errors based on the meta-regression model are fairly large and, in line with the broader literature, outperform simple value transfer when the underlying data sample is heterogeneous."


**********************************************************************

* 2. Prerequisites

* Before starting to run this 'Master-do-file', change the directory to fit your file structure. In your targeted folder you have to create sub-folders entitled "tables", "figures", "datasets" and "do-files". Save all unzipped do-files in the "do-files" folder for this 'Master-Do-file' to work. Save the raw dataset (provided in excel-format) in the subfolder "datasets".
* Change directorty:
*e.g. cd "C:\Research\Meta-Analysis"


*Install user-written commands that are used in this project
ssc install metareg, replace
ssc install estout, replace
ssc install metafunnel, replace
ssc install outreg2, replace
ssc install pctrim, replace
ssc install cv_regress, replace

*********************************************************************

* 3. Do files 

*Once the first do-file 'Data-preparation' created the dataset in dta-format, there is no prescribed order in which the other do-files need to be run.


* Step 1: Prepare the raw data for analysis

do "do-files/1 Data preparation.do"


* Step 2: Descriptive statistics and figures, tests for publication bias (Tables 1, 2, 3 and B1; Figures A3 and A4)

do "do-files/2 Descriptives and publication bias.do"


* Step 3: Model selection for the baseline specification (informs Table A7)

do "do-files/3 Model selection.do"


* Step 4: Regression diagnostics (Figures A5 and A6)

do "do-files/4 Regression diagnostics.do"


* Step 5: Main regression results (Table 4)

do "do-files/5 Main meta-regression.do"


* Step 6: Robustness regressions and subsample analyses (Tables A8 and A9)

do "do-files/6 Robustness of results.do" // Table A8
do "do-files/7 Subsample analyses.do"	// Table A9

    
* Step 7: Benefit transfer (Figure A7 and Table 5)

do "do-files/8 Benefit transfer.do"


